<ui:composition template="/WEB-INF/templates/login-template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="menu"></ui:define>
	<ui:define name="submenu"></ui:define>
	<ui:define name="sidebar">
		<ui:include src="/WEB-INF/templates/public-sidebar.xhtml" />
	</ui:define>
	<ui:define name="content">
		<h:form>
			<p:focus for="employeeCode"></p:focus>
			<p:growl id="growl" />
			<h:panelGrid columns="3"
				columnClasses="formLabelSimpleCell, formLabelSimpleCell, formLabelSimpleCell"
				style="margin: 0 auto; margin-top: 100px; margin-bottom: 80px; padding: 40px 60px 20px 60px; border: 1px solid #d9d9d9; "
				cellspacing="6">

				<h:outputLabel value="#{msg['employeeid.label']}"
					style="font-size: 12px;" />

				<h:outputLabel value=":" />

				<p:inputText value="#{loginBean.wamUser.employeeCode}"
					id="employeeCode" />

				<h:outputLabel value="#{msg['password.label']}"
					style="font-size: 12px;" />


				<h:outputLabel value=":" />


				<p:password value="#{loginBean.wamUser.password}" feedback="false" />

				<h:inputHidden />
				<h:inputHidden />
				<h:panelGroup>
					<p:commandButton value="Login" action="#{loginBean.login}"
						ajax="false" update="growl" />

				</h:panelGroup>


				<h:inputHidden />
				<h:inputHidden />
				<h:panelGroup>
					<h:panelGroup>
						<p:commandLink styleClass="sidebarLink" value="Forgot Password?"
							onclick="forgotpasswordDialog.show()" style="color: #EAAB00" />

						<p:dialog hideEffect="fade" showEffect="fade"
							header="Forgot password " id="forgotpasswordDialog"
							widgetVar="forgotpasswordDialog" resizable="false" modal="true"
							style="width: 800px;">

							<p:ajax event="close" update="growl"
								listener="#{loginBean.handleClose}" />
							<h:panelGrid columns="3" style="width: 100%;">
								<h:outputLabel value="*" style="color : red;" />
								<h:outputText value="EmailId(example@erpanderp.com): " />
								<p:inputText value="#{loginBean.emailId}" />
							</h:panelGrid>

							<p:commandButton value="Submit"
								action="#{loginBean.sendEmialAction}" update="@form" />


						</p:dialog>

					</h:panelGroup>
				</h:panelGroup>
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>

